<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>相邻兄弟选择器</title>
		<style type="text/css">
			span+a{
				color: red;
			}
		</style>
	</head>
	<body>
		<h1>姓名</h1>
		<a href="#">郭靖</a>
		<span>
			<a href="#">黄蓉</a>
			<a href="#">杨过</a>
		</span>	
		<a href="#">李莫愁</a>
		<a href="#">小龙女</a>
	</body>
</html>
